/*
 *  position.cpp
 *  
 *
 *  Created by Brian Bilbo on 12/05/09.
 *
 */

#include "position.h"

Position::Position()
: posX(0), posY(0)
{
}

Position::Position(int x, int y)
{
	posX = x;
	posY = y;
}

Position::~Position()
{
}

Position::Position( const Position& other )
{
	posX = other.posX;
	posY = other.posY;
}

Position& Position::operator=( const Position& other )
{
	if( this == &other ) {
		return *this;
	}
	posX = other.posX;
	posY = other.posY;
}
Position& Position::operator=( const Position* other )
{
	if( this == other ) {
		return *this;
	}
	posX = other->posX;
	posY = other->posY;
}
